package huaabdelmartin;

import java.util.Comparator;

public class CompareJourneyCost implements Comparator<Journey>{

	public int compare (Journey j1, Journey j2) 
	{
		Double cost1 = j1.getJourneyCost();
		Double cost2 = j2.getJourneyCost();
		return cost1.compareTo(cost2);
	}
}


